Skip to main content

Report User

POST /:username/report​

Description​

Reports a user for admin review.

Request Parameters​

Requires Authentication: true​

PATH PARAMS​

NameTypeRequiredDescription
usernamestringYesTarget username.

BODY​

NameTypeRequiredDescription
reasonstringNoReport reason. Maximum length is controlled by the API constants.

Usage Example​

await axios.post(
"https://api.daykeeper.app/johndoe/report",
{ reason: "Harassment" },
{
headers: {
Authorization: `Bearer ${accessToken}`,
},
}
)

Success Response​

{
"message": "johndoe Reported Successfully",
"reason": "Harassment"
}

Error Response​

CodeDescription
401Missing or invalid access token
402Target user is banned
404User not found
409User already reported by the same reporter
413Reason too long
500Server error